<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/19
 * Time: 12:15
 */

namespace app\common\model;
use think\Model;

class ArtCate extends Model
{
    protected $pk = 'id';
    protected $name = 'article_category';
    # 自动填写入时间戳
    protected $autoWriteTimestamp = true;

    protected function getStatusAttr($value){
        $status_arr = ['禁用', '启用'];
        return $status_arr[$value];
    }
}